<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl" dir="ltr">
<head>
  <title><?php echo CHtml::encode($this->pageTitle); ?></title>
  <!-- Contents -->
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Language" content="pl" />
  <meta name="description" content="" />
  <meta name="keywords" content="" />
  <!-- Parent -->
  <link rel="sitemap" href="imsitemap.html" title="Ogólna mapa witryny" />
  <!-- Res -->
  <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/static_files/res/x5engine.js"></script>
  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" media="screen, print" />
  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/static_files/res/styles.css" media="screen, print" />
  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/static_files/res/template.css" media="screen" />
  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/static_files/res/print.css" media="print" />
  <!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/static_files/res/iebehavior.css" media="screen" /><![endif]-->
  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/static_files/res/handheld.css" media="handheld" />
  <link rel="alternate stylesheet" title="Wysoki kontrast - Dostępność" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/static_files/res/accessibility.css" media="screen" />
  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/additional.css" />
</head>

<body>
  <div id="imSite">
    <div id="imHeader">
      <h1>Wczasopedia.pl</h1>
      <div id="Login">
      <?php if (Yii::app()->user->isGuest): ?>
        <a href="index.php?r=<?php echo Yii::app()->getModule('user')->loginUrl[0]; ?>"><?php echo Yii::app()->getModule('user')->t("Login"); ?></a>
      <?php else: ?>
        <ul>
          <li><a href="index.php?r=<?php echo Yii::app()->getModule('user')->profileUrl[0];?>" title="Zobacz profil"><?php echo Yii::app()->getModule('user')->t("Profile"); ?></a></li>
          <li><a href="index.php?r=<?php echo Yii::app()->getModule('user')->logoutUrl[0]; ?>" title="Wyloguj (<?php echo Yii::app()->user->name; ?>)"><?php echo Yii::app()->getModule('user')->t("Logout"); ?></a></li>
        </ul>
      <?php endif; ?>
      </div>
    </div>
    <div class="imInvisible">
      <hr />
      <a href="#imGoToCont" title="Pomiń menu główne">Idź do treści</a>
    </div>
    <div id="imBody">
      <div id="imMenuMain">
        <!-- Menu START -->
        <a name="imGoToMenu"></a>
        <p class="imInvisible">Menu główne:</p>
        <div id="imMnMn">
          <?php //menu will be inserted here. Menu is created upon upload process. Menu structure is getted from static_files/index.html ?>
          <?php
            include('protected/views/layouts/generated/main_menu.php');
          ?>
        </div>
        <!-- Menu END -->
      </div>
      <hr class="imInvisible" />
      <div id="imContent">
        <?php echo $content;?>
      </div>
      <div id="imFooter"><!-- . --></div>
    </div><!-- end #imBody -->
  </div><!-- end #imSite -->
  <div class="imInvisible">
    <hr />
    <a href="#imGoToCont" title="Przeczytaj ta stronę ponownie">Powrót do treści</a> | <a href="#imGoToMenu" title="Przeczytaj ta stronę ponownie">Wróć do menu głównego</a>
  </div>
  <div id="imShowBoxBG" style="display: none;" onclick="imShowBoxHide()"></div>
  <div id="imShowBoxContainer" style="display: none;" onclick="imShowBoxHide()"><div id="imShowBox" style="height: 200px; width: 200px;"></div></div>
  <div id="imBGSound"></div>
  <div id="imToolTip">
    <script type="text/javascript">var imt = new IMTip;</script>
  </div>
  <script type="text/javascript">imPreloadImages('static_files/res/immnu_01b.gif,static_files/res/immnu_02b.gif,static_files/res/immnu_03b.gif,static_files/res/immnu_04b.gif,static_files/res/immnu_05b.gif,static_files/res/immnu_06b.gif,static_files/res/immnu_07b.gif,static_files/res/immnu_08b.gif')</script>
</body>
</html>
